﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class ContentNewsDetail : System.Web.UI.UserControl
    {
        public string newsname;
        public string newsdescription;        

        protected void Page_Load(object sender, EventArgs e)            
        {
            string  id = Request.QueryString["id"].ToString();
            DataTable dt = DAL.DCollector.DBCollector.Instance.CallSQL1Param("Select * from tbl_News where News_ID = "+id,true);
            newsname = dt.Rows[0]["News_Name"].ToString();
            newsdescription = dt.Rows[0]["News_Description"].ToString();
        }
    }
}